﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace FanaticRock.Theme.Helpers
{
    ///<summary>间隔。</summary>
    public static class SpaceHelper
    {
        #region space
        
        public static Thickness GetSpace(DependencyObject obj)
        {
            return (Thickness)obj.GetValue(SpaceProperty);
        }

        public static void SetSpace(DependencyObject obj, Thickness value)
        {
            obj.SetValue(SpaceProperty, value);
        }

        // Using a DependencyProperty as the backing store for Space.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty SpaceProperty =
            DependencyProperty.RegisterAttached("Space", typeof(Thickness), typeof(SpaceHelper), new PropertyMetadata(new Thickness(0d)));



        #endregion
    }
}
